package com.qys.livesMall.shop.controller.sys;

import com.qys.livesMall.common.result.R;
import com.qys.livesMall.finance.model.dto.AccountDetailSearch;
import com.qys.livesMall.framework.utils.SecurityUtils;
import com.qys.livesMall.framework.view.QysPage;
import com.qys.livesMall.shop.modal.dto.shop.balance.ShopBalanceDetailSearch;
import com.qys.livesMall.shop.modal.vo.ShopBalanceDetailVO;
import com.qys.livesMall.shop.service.H2ShopBalanceDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 后台管理-店铺余额明细
 *
 * @author
 * @since 2023-06-06
 */
@RestController
@RequestMapping("/shopBalanceDetail")
public class WebH2ShopBalanceDetailController {

    @Autowired
    private H2ShopBalanceDetailService balanceDetailService;

    /**
     * 列表
     * @param search
     * @return
     */
    @PostMapping("list")
    public R<QysPage<ShopBalanceDetailVO>> list(@RequestBody AccountDetailSearch search){
        return R.ok(balanceDetailService.list(search));
    }
}
